console.log('process.env.INIT_ENV: ', process.env.INIT_ENV);

type currentEnvType = 'dev' | 'test' | 'pre' | 'prod';

export const currentEnv: currentEnvType =
  (process.env.INIT_ENV as currentEnvType) || 'dev';
export const isProd: boolean = process.env.INIT_ENV === 'prod';

const defualtUrl = 'https://api.shudong.wang';

const urlEnv = {
  dev: 'https://api.shudong.wang',
  test: 'https://api.shudong.wang',
  pre: 'https://api.shudong.wang',
  prod: 'https://api.shudong.wang'
};

export const baseUrl = urlEnv[currentEnv] || defualtUrl;
